<form id="{$form.name}" name="{$form.name}">

<div style="padding-left:25px; padding-right:40px;">
{include file="system_appbuilder_btn.tpl.html"}
	<div>
		{if $form.icon !='' }
	<div class="form_icon"><img  src="{$image_url}/{$form.icon}" border="0" /></div>
	{/if}
		<div ><h2>{$form.title}</h2></div>
	</div>
		{if $form.description}
		<p class="input_row" style="line-height:20px;padding-bottom:20px;">		
		<span>{$form.description}</span>
		</p>
		{else}
		<div style="height:15px;"></div>
		{/if}
	<div style="padding-left:30px;" >
	{foreach item=setname name=elemsets  from=$form.elementSets}
		{if $smarty.foreach.elemsets.first}
		<div class="underline upline">
		{else}
		<div class="underline">
		{/if}
		<h2>{$setname}</h2>
		{foreach item=item key=itemName from=$dataPanel}
			{if $item.elementset eq $setname}
			{if $item.type eq 'CKEditor' or $item.type eq 'RichText' or $item.type eq 'Textarea'}
				<table  id="{$itemName}_container" class="input_row">
				<tr>
				<td style="width:80px;">	
					<label style="text-align:left">{$item.label}</label>
				</td>
				<td>
					{if $errors.$itemName}
					<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
					{elseif $item.description}
					<span class="input_desc" style="width:240px;">{$item.description}</span>			
					{/if}
				</td>
				</tr>
				<tr><td colspan="2" align="center" >
					<span class="label_textarea" >{$item.element}</span>
								
				</td></tr>
				</table>		
			{else}
				{if $item.type eq 'Hidden' }
				<table  id="{$itemName}_container" class="input_row" style="display:none">
				{else}
				<table  id="{$itemName}_container" class="input_row">
				{/if}					
				<tr>
				<td >	
					<label style="text-align:left;width:90px;">{$item.label}</label>
				</td>
				<td>
				
					<span class="label_text" style="float:left;width:350px;">{$item.element}</span>
					{if $errors.$itemName}
					<span class="input_error_msg" style="width:140px;">{$errors.$itemName}</span>
					{elseif $item.description}
					<span class="input_desc" style="width:140px;">{$item.description}</span>			
					{/if}
				</td>
				</tr>
				</table>
			{/if}			
			{/if}
		{/foreach}
		</div>
	{/foreach}
		<div style="height:10px;"></div>
		<p class="input_row">
			
			{foreach item=elem from=$actionPanel}
				{$elem.element}
			{/foreach}
		</p>
	</div>
	
		<div style="height:15px;">
		<div id='{$form.name}.load_disp' style="display:none;">
		<img  src="{$image_url}/form_ajax_loader.gif"/>
		</div>
		</div>
	
</div>

</form>
{literal}
<script>
try{showElementConfigOptions($('fld_class').value);}catch(e){};
</script>
{/literal}